package com.zhongxi.guoyuan.entity.coinStore;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/6/28.
 */

public class ItemGoodCollectionInfo {
    private String id;
    private String attrs;
    private String goodsid;
    private String image;
    private String price;
    private String thumbnail;
    private String stocknum;
    private String backsilvernum;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAttrs() {
        return attrs;
    }

    public void setAttrs(String attrs) {
        this.attrs = attrs;
    }

    public String getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(String goodsid) {
        this.goodsid = goodsid;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getThumbnail() {
        return thumbnail;
    }

    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
    }

    public String getStocknum() {
        return stocknum;
    }

    public void setStocknum(String stocknum) {
        this.stocknum = stocknum;
    }

    public String getBacksilvernum() {
        return backsilvernum;
    }

    public void setBacksilvernum(String backsilvernum) {
        this.backsilvernum = backsilvernum;
    }

    public static ItemGoodCollectionInfo parseMatch(JSONObject jsonObject) {
        ItemGoodCollectionInfo collectionInfo = new ItemGoodCollectionInfo();
        collectionInfo.setId(jsonObject.optString("id"));
        collectionInfo.setAttrs(jsonObject.optString("attrs"));
        collectionInfo.setGoodsid(jsonObject.optString("goodsid"));
        collectionInfo.setImage(jsonObject.optString("image"));
        collectionInfo.setPrice(jsonObject.optString("price"));
        collectionInfo.setThumbnail(jsonObject.optString("thumbnail"));
        collectionInfo.setStocknum(jsonObject.optString("stocknum"));
        collectionInfo.setBacksilvernum(jsonObject.optString("backsilvernum"));
        return collectionInfo;
    }
}
